package com.config;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class initListener extends HttpServlet {
	
	private static final long serialVersionUID = 1L;
	
	public void init(ServletConfig config) throws ServletException {
		super.init(config);

		try {
			String appPath = config.getServletContext().getRealPath("");
			ConfigLoader.startSystemglobals(appPath);
			ConfigLoader.listenForChanges();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}